package com.core.extend;

import java.io.Serializable;

/**
 * @author gang
 */
public class UserContext implements Serializable {
    public static final UserContext ANONYMOUS_USER = new UserContext();

    private Long id;
    private String domainAccount;
    private String cnName;
    private Long departmentId;
    private String departmentName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Deprecated
    public String getName() {
        return domainAccount;
    }

    @Deprecated
    public void setName(String name) {
        this.domainAccount = name;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getDomainAccount() {
        return domainAccount;
    }

    public void setDomainAccount(String domainAccount) {
        this.domainAccount = domainAccount;
    }
}
